package com.company.eduservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.company.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.company.eduservice.vo.course.CourseInfoVo;
import com.company.eduservice.vo.course.CourseNotarizeVo;
import com.company.eduservice.vo.front.CourseFrontVo;
import com.company.eduservice.vo.front.CourseWebVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author testjava
 * @since 2020-04-18
 */
public interface EduCourseService extends IService<EduCourse> {

    //添加课程的基本信息
    String saveCourseInfo(CourseInfoVo vo);

    //确认课程信息
    CourseNotarizeVo courseNotarizeById(String id);

    //删除课程
    void deleteCourseById(String courseId);

    //查询前8条热门课程
    List<EduCourse> getCourseList();

    List<EduCourse> getCourseByTeacherId(String teacherId);

    Map<String, Object> pageTeacherList(Page<EduCourse> page, CourseFrontVo frontVo);

    CourseWebVo getFrontCourseInfo(String courseId);

    Integer getCourseViewCount();
}
